.class public Lcom/xingbook/park/c/a/d;
.super Landroid/widget/RelativeLayout;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:F

.field private b:Ljava/util/ArrayList;

.field private c:Landroid/widget/LinearLayout;

.field private d:Landroid/widget/TextView;

.field private e:Landroid/widget/ImageView;

.field private f:Landroid/widget/ImageView;

.field private g:Lcom/xingbook/park/c/a/f;

.field private h:I

.field private i:Z

.field private j:Landroid/app/Activity;


# direct methods
.method public constructor <init>(Landroid/app/Activity;FLcom/xingbook/park/c/a/f;Z)V
    .locals 9
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    invoke-virtual {p1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {p0, v0}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    const/4 v0, -0x1

    iput v0, p0, Lcom/xingbook/park/c/a/d;->h:I

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/xingbook/park/c/a/d;->i:Z

    iput-object p1, p0, Lcom/xingbook/park/c/a/d;->j:Landroid/app/Activity;

    iput p2, p0, Lcom/xingbook/park/c/a/d;->a:F

    iput-object p3, p0, Lcom/xingbook/park/c/a/d;->g:Lcom/xingbook/park/c/a/f;

    iput-boolean p4, p0, Lcom/xingbook/park/c/a/d;->i:Z

    const v0, -0xe74b13

    invoke-virtual {p0, v0}, Lcom/xingbook/park/c/a/d;->setBackgroundColor(I)V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/xingbook/park/c/a/d;->b:Ljava/util/ArrayList;

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v1, -0x1

    const/high16 v2, 0x432a

    mul-float/2addr v2, p2

    float-to-int v2, v2

    invoke-direct {v0, v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v1, 0xa

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {p0, v0}, Lcom/xingbook/park/c/a/d;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {p1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    const/high16 v0, 0x41b8

    mul-float/2addr v0, p2

    float-to-int v0, v0

    const/4 v2, -0x2

    const/4 v3, -0x2

    const/high16 v4, 0x4220

    mul-float/2addr v4, p2

    new-instance v5, Landroid/widget/TextView;

    invoke-direct {v5, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v5, p0, Lcom/xingbook/park/c/a/d;->d:Landroid/widget/TextView;

    iget-object v5, p0, Lcom/xingbook/park/c/a/d;->d:Landroid/widget/TextView;

    const/4 v6, 0x0

    invoke-virtual {v5, v6, v4}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v4, p0, Lcom/xingbook/park/c/a/d;->d:Landroid/widget/TextView;

    const/4 v5, -0x1

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setTextColor(I)V

    new-instance v4, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v4, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v2, 0xe

    invoke-virtual {v4, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    iput v0, v4, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    iget-object v0, p0, Lcom/xingbook/park/c/a/d;->d:Landroid/widget/TextView;

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/d;->d:Landroid/widget/TextView;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/c/a/d;->addView(Landroid/view/View;)V

    const/high16 v0, 0x42a4

    mul-float/2addr v0, p2

    float-to-int v2, v0

    const/high16 v0, 0x440d

    mul-float/2addr v0, p2

    float-to-int v3, v0

    const/high16 v0, 0x4280

    mul-float/2addr v0, p2

    float-to-int v4, v0

    const/high16 v0, 0x4000

    mul-float/2addr v0, p2

    float-to-int v0, v0

    const/4 v5, 0x2

    if-ge v0, v5, :cond_0

    const/4 v0, 0x2

    :cond_0
    const/high16 v5, 0x4170

    mul-float/2addr v5, p2

    float-to-int v5, v5

    new-instance v6, Landroid/widget/LinearLayout;

    invoke-direct {v6, v1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput-object v6, p0, Lcom/xingbook/park/c/a/d;->c:Landroid/widget/LinearLayout;

    iget-object v6, p0, Lcom/xingbook/park/c/a/d;->c:Landroid/widget/LinearLayout;

    const/4 v7, 0x0

    invoke-virtual {v6, v7}, Landroid/widget/LinearLayout;->setOrientation(I)V

    iget-object v6, p0, Lcom/xingbook/park/c/a/d;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v6, v0, v0, v0, v0}, Landroid/widget/LinearLayout;->setPadding(IIII)V

    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v6, 0x10

    if-lt v0, v6, :cond_4

    iget-object v0, p0, Lcom/xingbook/park/c/a/d;->c:Landroid/widget/LinearLayout;

    const/4 v6, 0x0

    const v7, 0xffffff

    const/4 v8, -0x1

    invoke-static {v6, v7, v5, v8}, Lcom/xingbook/park/ui/aa;->a(IIII)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v5

    invoke-virtual {v0, v5}, Landroid/widget/LinearLayout;->setBackground(Landroid/graphics/drawable/Drawable;)V

    :goto_0
    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v0, v3, v4}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v3, 0xe

    invoke-virtual {v0, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    iput v2, v0, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    iget-object v2, p0, Lcom/xingbook/park/c/a/d;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v2, v0}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/d;->c:Landroid/widget/LinearLayout;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/c/a/d;->addView(Landroid/view/View;)V

    const/high16 v0, 0x42a4

    mul-float/2addr v0, p2

    float-to-int v0, v0

    const/high16 v2, 0x432a

    mul-float/2addr v2, p2

    float-to-int v2, v2

    const/high16 v3, 0x41c8

    mul-float/2addr v3, p2

    float-to-int v3, v3

    const/high16 v4, 0x4278

    mul-float/2addr v4, p2

    float-to-int v4, v4

    new-instance v5, Landroid/widget/ImageView;

    invoke-direct {v5, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v5, p0, Lcom/xingbook/park/c/a/d;->e:Landroid/widget/ImageView;

    iget-object v5, p0, Lcom/xingbook/park/c/a/d;->e:Landroid/widget/ImageView;

    sget-object v6, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v5, v6}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    iget-object v5, p0, Lcom/xingbook/park/c/a/d;->e:Landroid/widget/ImageView;

    invoke-virtual {v5, v3, v4, v3, v4}, Landroid/widget/ImageView;->setPadding(IIII)V

    iget-object v3, p0, Lcom/xingbook/park/c/a/d;->e:Landroid/widget/ImageView;

    const v4, 0x7f0202a7

    invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    new-instance v3, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v3, v0, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v0, 0x9

    invoke-virtual {v3, v0}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/d;->e:Landroid/widget/ImageView;

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/d;->e:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/d;->e:Landroid/widget/ImageView;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/c/a/d;->addView(Landroid/view/View;)V

    const/high16 v0, 0x42c2

    mul-float/2addr v0, p2

    float-to-int v0, v0

    const/high16 v2, 0x432a

    mul-float/2addr v2, p2

    float-to-int v2, v2

    const/high16 v3, 0x41c8

    mul-float/2addr v3, p2

    float-to-int v3, v3

    const/high16 v4, 0x4274

    mul-float/2addr v4, p2

    float-to-int v4, v4

    new-instance v5, Landroid/widget/ImageView;

    invoke-direct {v5, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v5, p0, Lcom/xingbook/park/c/a/d;->f:Landroid/widget/ImageView;

    iget-object v5, p0, Lcom/xingbook/park/c/a/d;->f:Landroid/widget/ImageView;

    sget-object v6, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v5, v6}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    iget-object v5, p0, Lcom/xingbook/park/c/a/d;->f:Landroid/widget/ImageView;

    invoke-virtual {v5, v3, v4, v3, v4}, Landroid/widget/ImageView;->setPadding(IIII)V

    iget-object v3, p0, Lcom/xingbook/park/c/a/d;->f:Landroid/widget/ImageView;

    const v4, 0x7f0202aa

    invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    new-instance v3, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v3, v0, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v0, 0xb

    invoke-virtual {v3, v0}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/d;->f:Landroid/widget/ImageView;

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/d;->f:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/d;->f:Landroid/widget/ImageView;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/c/a/d;->addView(Landroid/view/View;)V

    if-eqz p4, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/c/a/d;->f:Landroid/widget/ImageView;

    const/16 v2, 0x8

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    :cond_1
    invoke-static {}, Lcom/xingbook/park/c/a;->a()Z

    move-result v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/park/c/a/d;->e:Landroid/widget/ImageView;

    const/16 v2, 0x8

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/d;->f:Landroid/widget/ImageView;

    const/16 v2, 0x8

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    invoke-static {}, Lcom/xingbook/c/n;->l()Lcom/xingbook/c/j;

    move-result-object v2

    const/4 v0, 0x0

    if-eqz v2, :cond_2

    invoke-virtual {v2}, Lcom/xingbook/c/j;->m()Lcom/xingbook/c/r;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/r;->e()J

    move-result-wide v2

    const-wide/32 v4, 0x133789d

    cmp-long v0, v2, v4

    if-lez v0, :cond_5

    const/4 v0, 0x1

    :cond_2
    :goto_1
    if-eqz v0, :cond_3

    const/high16 v0, 0x42c2

    mul-float/2addr v0, p2

    float-to-int v0, v0

    const/high16 v2, 0x432a

    mul-float/2addr v2, p2

    float-to-int v2, v2

    const/high16 v3, 0x4190

    mul-float/2addr v3, p2

    float-to-int v3, v3

    const/high16 v4, 0x425c

    mul-float/2addr v4, p2

    float-to-int v4, v4

    new-instance v5, Landroid/widget/ImageView;

    invoke-direct {v5, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    sget-object v1, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v5, v1}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    invoke-virtual {v5, v3, v4, v3, v4}, Landroid/widget/ImageView;->setPadding(IIII)V

    const v1, 0x7f0202a9

    invoke-virtual {v5, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v1, v0, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v0, 0xb

    invoke-virtual {v1, v0}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {v5, v1}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    new-instance v0, Lcom/xingbook/park/c/a/e;

    invoke-direct {v0, p0}, Lcom/xingbook/park/c/a/e;-><init>(Lcom/xingbook/park/c/a/d;)V

    invoke-virtual {v5, v0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    invoke-virtual {p0, v5}, Lcom/xingbook/park/c/a/d;->addView(Landroid/view/View;)V

    :cond_3
    return-void

    :cond_4
    iget-object v0, p0, Lcom/xingbook/park/c/a/d;->c:Landroid/widget/LinearLayout;

    const/4 v6, 0x0

    const v7, 0xffffff

    const/4 v8, -0x1

    invoke-static {v6, v7, v5, v8}, Lcom/xingbook/park/ui/aa;->a(IIII)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v5

    invoke-virtual {v0, v5}, Landroid/widget/LinearLayout;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto/16 :goto_0

    :cond_5
    const/4 v0, 0x0

    goto :goto_1
.end method

.method static synthetic a(Lcom/xingbook/park/c/a/d;)Landroid/app/Activity;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/c/a/d;->j:Landroid/app/Activity;

    return-object v0
.end method

.method public static a(Landroid/app/Activity;Landroid/widget/RelativeLayout;FLcom/xingbook/park/c/a/f;)Lcom/xingbook/park/c/a/d;
    .locals 2

    new-instance v0, Lcom/xingbook/park/c/a/d;

    const/4 v1, 0x0

    invoke-direct {v0, p0, p2, p3, v1}, Lcom/xingbook/park/c/a/d;-><init>(Landroid/app/Activity;FLcom/xingbook/park/c/a/f;Z)V

    invoke-virtual {p1, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    return-object v0
.end method

.method public static a(Landroid/app/Activity;Landroid/widget/RelativeLayout;FLcom/xingbook/park/c/a/f;Z)Lcom/xingbook/park/c/a/d;
    .locals 1

    new-instance v0, Lcom/xingbook/park/c/a/d;

    invoke-direct {v0, p0, p2, p3, p4}, Lcom/xingbook/park/c/a/d;-><init>(Landroid/app/Activity;FLcom/xingbook/park/c/a/f;Z)V

    invoke-virtual {p1, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    return-object v0
.end method


# virtual methods
.method public varargs a(Ljava/lang/String;I[Ljava/lang/String;)V
    .locals 15
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    iget-object v1, p0, Lcom/xingbook/park/c/a/d;->d:Landroid/widget/TextView;

    move-object/from16 v0, p1

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const/4 v1, 0x0

    if-eqz p3, :cond_9

    move-object/from16 v0, p3

    array-length v1, v0

    move v2, v1

    :goto_0
    const/4 v1, -0x1

    iput v1, p0, Lcom/xingbook/park/c/a/d;->h:I

    iget-object v1, p0, Lcom/xingbook/park/c/a/d;->b:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V

    iget-object v1, p0, Lcom/xingbook/park/c/a/d;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->removeAllViews()V

    if-nez v2, :cond_0

    :goto_1
    return-void

    :cond_0
    const/high16 v1, 0x41f0

    iget v3, p0, Lcom/xingbook/park/c/a/d;->a:F

    mul-float v4, v1, v3

    const/high16 v1, 0x4000

    iget v3, p0, Lcom/xingbook/park/c/a/d;->a:F

    mul-float/2addr v1, v3

    float-to-int v1, v1

    const/4 v3, 0x2

    if-ge v1, v3, :cond_1

    const/4 v1, 0x2

    :cond_1
    const/high16 v3, 0x4170

    iget v5, p0, Lcom/xingbook/park/c/a/d;->a:F

    mul-float/2addr v3, v5

    float-to-int v5, v3

    iget-object v3, p0, Lcom/xingbook/park/c/a/d;->c:Landroid/widget/LinearLayout;

    int-to-float v6, v2

    invoke-virtual {v3, v6}, Landroid/widget/LinearLayout;->setWeightSum(F)V

    const/high16 v3, 0x4280

    iget v6, p0, Lcom/xingbook/park/c/a/d;->a:F

    mul-float/2addr v3, v6

    float-to-int v6, v3

    const/4 v3, 0x2

    new-array v3, v3, [[I

    const/4 v7, 0x0

    const/4 v8, 0x1

    new-array v8, v8, [I

    const/4 v9, 0x0

    const v10, 0x10100a1

    aput v10, v8, v9

    aput-object v8, v3, v7

    const/4 v7, 0x1

    const/4 v8, 0x0

    new-array v8, v8, [I

    aput-object v8, v3, v7

    const/4 v7, 0x2

    new-array v7, v7, [I

    fill-array-data v7, :array_0

    new-instance v8, Landroid/content/res/ColorStateList;

    invoke-direct {v8, v3, v7}, Landroid/content/res/ColorStateList;-><init>([[I[I)V

    const/4 v3, 0x0

    :goto_2
    if-lt v3, v2, :cond_2

    const/4 v1, 0x0

    move v4, v1

    :goto_3
    if-lt v4, v2, :cond_7

    move/from16 v0, p2

    iput v0, p0, Lcom/xingbook/park/c/a/d;->h:I

    iget-object v1, p0, Lcom/xingbook/park/c/a/d;->g:Lcom/xingbook/park/c/a/f;

    const/16 v2, 0x96

    move/from16 v0, p2

    invoke-interface {v1, v0, v2}, Lcom/xingbook/park/c/a/f;->a(II)V

    goto :goto_1

    :cond_2
    new-instance v7, Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/xingbook/park/c/a/d;->getContext()Landroid/content/Context;

    move-result-object v9

    invoke-direct {v7, v9}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iget-object v9, p0, Lcom/xingbook/park/c/a/d;->b:Ljava/util/ArrayList;

    invoke-virtual {v9, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v9

    invoke-virtual {v7, v9}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    const/16 v9, 0x11

    invoke-virtual {v7, v9}, Landroid/widget/TextView;->setGravity(I)V

    const/4 v9, 0x0

    invoke-virtual {v7, v9, v4}, Landroid/widget/TextView;->setTextSize(IF)V

    invoke-virtual {v7, v8}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V

    new-instance v9, Landroid/graphics/drawable/StateListDrawable;

    invoke-direct {v9}, Landroid/graphics/drawable/StateListDrawable;-><init>()V

    if-nez v3, :cond_4

    const/16 v10, 0x8

    new-array v10, v10, [F

    const/4 v11, 0x0

    int-to-float v12, v5

    aput v12, v10, v11

    const/4 v11, 0x1

    int-to-float v12, v5

    aput v12, v10, v11

    const/4 v11, 0x2

    const/4 v12, 0x0

    aput v12, v10, v11

    const/4 v11, 0x3

    const/4 v12, 0x0

    aput v12, v10, v11

    const/4 v11, 0x4

    const/4 v12, 0x0

    aput v12, v10, v11

    const/4 v11, 0x5

    const/4 v12, 0x0

    aput v12, v10, v11

    const/4 v11, 0x6

    int-to-float v12, v5

    aput v12, v10, v11

    const/4 v11, 0x7

    int-to-float v12, v5

    aput v12, v10, v11

    const/4 v11, 0x1

    new-array v11, v11, [I

    const/4 v12, 0x0

    const v13, 0x10100a1

    aput v13, v11, v12

    const/4 v12, 0x0

    const v13, 0xffffff

    const/4 v14, -0x1

    invoke-static {v12, v13, v10, v14}, Lcom/xingbook/park/ui/aa;->a(II[FI)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v12

    invoke-virtual {v9, v11, v12}, Landroid/graphics/drawable/StateListDrawable;->addState([ILandroid/graphics/drawable/Drawable;)V

    const/4 v11, 0x0

    new-array v11, v11, [I

    const/4 v12, 0x0

    const v13, 0xffffff

    const v14, -0xe74b13

    invoke-static {v12, v13, v10, v14}, Lcom/xingbook/park/ui/aa;->a(II[FI)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v10

    invoke-virtual {v9, v11, v10}, Landroid/graphics/drawable/StateListDrawable;->addState([ILandroid/graphics/drawable/Drawable;)V

    :goto_4
    sget v10, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v11, 0x10

    if-lt v10, v11, :cond_6

    invoke-virtual {v7, v9}, Landroid/widget/TextView;->setBackground(Landroid/graphics/drawable/Drawable;)V

    :goto_5
    new-instance v9, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v10, 0x0

    mul-int/lit8 v11, v1, 0x2

    sub-int v11, v6, v11

    invoke-direct {v9, v10, v11}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    const/high16 v10, 0x3f80

    iput v10, v9, Landroid/widget/LinearLayout$LayoutParams;->weight:F

    if-lez v3, :cond_3

    iput v1, v9, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    :cond_3
    invoke-virtual {v7, v9}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v9, p0, Lcom/xingbook/park/c/a/d;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v9, v7}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    invoke-virtual {v7, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    add-int/lit8 v3, v3, 0x1

    goto/16 :goto_2

    :cond_4
    add-int/lit8 v10, v2, -0x1

    if-ne v3, v10, :cond_5

    const/16 v10, 0x8

    new-array v10, v10, [F

    const/4 v11, 0x0

    const/4 v12, 0x0

    aput v12, v10, v11

    const/4 v11, 0x1

    const/4 v12, 0x0

    aput v12, v10, v11

    const/4 v11, 0x2

    int-to-float v12, v5

    aput v12, v10, v11

    const/4 v11, 0x3

    int-to-float v12, v5

    aput v12, v10, v11

    const/4 v11, 0x4

    int-to-float v12, v5

    aput v12, v10, v11

    const/4 v11, 0x5

    int-to-float v12, v5

    aput v12, v10, v11

    const/4 v11, 0x6

    const/4 v12, 0x0

    aput v12, v10, v11

    const/4 v11, 0x7

    const/4 v12, 0x0

    aput v12, v10, v11

    const/4 v11, 0x1

    new-array v11, v11, [I

    const/4 v12, 0x0

    const v13, 0x10100a1

    aput v13, v11, v12

    const/4 v12, 0x0

    const v13, 0xffffff

    const/4 v14, -0x1

    invoke-static {v12, v13, v10, v14}, Lcom/xingbook/park/ui/aa;->a(II[FI)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v12

    invoke-virtual {v9, v11, v12}, Landroid/graphics/drawable/StateListDrawable;->addState([ILandroid/graphics/drawable/Drawable;)V

    const/4 v11, 0x0

    new-array v11, v11, [I

    const/4 v12, 0x0

    const v13, 0xffffff

    const v14, -0xe74b13

    invoke-static {v12, v13, v10, v14}, Lcom/xingbook/park/ui/aa;->a(II[FI)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v10

    invoke-virtual {v9, v11, v10}, Landroid/graphics/drawable/StateListDrawable;->addState([ILandroid/graphics/drawable/Drawable;)V

    goto :goto_4

    :cond_5
    const/4 v10, 0x1

    new-array v10, v10, [I

    const/4 v11, 0x0

    const v12, 0x10100a1

    aput v12, v10, v11

    const/4 v11, 0x0

    const v12, 0xffffff

    const/4 v13, 0x0

    const/4 v14, -0x1

    invoke-static {v11, v12, v13, v14}, Lcom/xingbook/park/ui/aa;->a(IIII)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v11

    invoke-virtual {v9, v10, v11}, Landroid/graphics/drawable/StateListDrawable;->addState([ILandroid/graphics/drawable/Drawable;)V

    const/4 v10, 0x0

    new-array v10, v10, [I

    const/4 v11, 0x0

    const v12, 0xffffff

    const/4 v13, 0x0

    const v14, -0xe74b13

    invoke-static {v11, v12, v13, v14}, Lcom/xingbook/park/ui/aa;->a(IIII)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v11

    invoke-virtual {v9, v10, v11}, Landroid/graphics/drawable/StateListDrawable;->addState([ILandroid/graphics/drawable/Drawable;)V

    goto/16 :goto_4

    :cond_6
    invoke-virtual {v7, v9}, Landroid/widget/TextView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto/16 :goto_5

    :cond_7
    iget-object v1, p0, Lcom/xingbook/park/c/a/d;->b:Ljava/util/ArrayList;

    invoke-virtual {v1, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    aget-object v3, p3, v4

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/xingbook/park/c/a/d;->b:Ljava/util/ArrayList;

    invoke-virtual {v1, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    move/from16 v0, p2

    if-ne v0, v4, :cond_8

    const/4 v3, 0x1

    :goto_6
    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setSelected(Z)V

    add-int/lit8 v1, v4, 0x1

    move v4, v1

    goto/16 :goto_3

    :cond_8
    const/4 v3, 0x0

    goto :goto_6

    :cond_9
    move v2, v1

    goto/16 :goto_0

    :array_0
    .array-data 0x4
        0xedt 0xb4t 0x18t 0xfft
        0xfft 0xfft 0xfft 0xfft
    .end array-data
.end method

.method public a(Landroid/view/View;)Z
    .locals 4

    const/16 v3, 0xb

    iget-boolean v0, p0, Lcom/xingbook/park/c/a/d;->i:Z

    if-eqz v0, :cond_1

    invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    if-eqz v0, :cond_0

    instance-of v1, v0, Landroid/widget/RelativeLayout$LayoutParams;

    if-eqz v1, :cond_0

    check-cast v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-virtual {v0, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    :goto_0
    invoke-virtual {p0, p1}, Lcom/xingbook/park/c/a/d;->addView(Landroid/view/View;)V

    const/4 v0, 0x1

    :goto_1
    return v0

    :cond_0
    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v0, -0x2

    const/4 v2, -0x1

    invoke-direct {v1, v0, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    move-object v0, v1

    check-cast v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-virtual {v0, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {p1, v1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0

    :cond_1
    sget-object v0, Ljava/lang/System;->err:Ljava/io/PrintStream;

    const-string v1, "CommonMainTitleUI.addOptionView can\'t add this view when hideSearch=false"

    invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    const/4 v0, 0x0

    goto :goto_1
.end method

.method public getSelectedIndex()I
    .locals 1

    iget v0, p0, Lcom/xingbook/park/c/a/d;->h:I

    return v0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 6

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/xingbook/park/c/a/d;->e:Landroid/widget/ImageView;

    invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/c/a/d;->g:Lcom/xingbook/park/c/a/f;

    invoke-interface {v0}, Lcom/xingbook/park/c/a/f;->b()V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/xingbook/park/c/a/d;->f:Landroid/widget/ImageView;

    invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/park/c/a/d;->g:Lcom/xingbook/park/c/a/f;

    invoke-interface {v0}, Lcom/xingbook/park/c/a/f;->a()V

    goto :goto_0

    :cond_2
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_0

    instance-of v1, v0, Ljava/lang/Integer;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/xingbook/park/c/a/d;->b:Ljava/util/ArrayList;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/xingbook/park/c/a/d;->b:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v4

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v5

    if-ge v5, v4, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/c/a/d;->g:Lcom/xingbook/park/c/a/f;

    invoke-interface {v0, v5, v2}, Lcom/xingbook/park/c/a/f;->a(II)V

    iput v5, p0, Lcom/xingbook/park/c/a/d;->h:I

    move v3, v2

    :goto_1
    if-ge v3, v4, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/c/a/d;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    if-ne v3, v5, :cond_3

    const/4 v1, 0x1

    :goto_2
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setSelected(Z)V

    add-int/lit8 v0, v3, 0x1

    move v3, v0

    goto :goto_1

    :cond_3
    move v1, v2

    goto :goto_2
.end method

.method public setSelected(I)V
    .locals 5

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/xingbook/park/c/a/d;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-ltz p1, :cond_0

    if-ge p1, v4, :cond_0

    iget v0, p0, Lcom/xingbook/park/c/a/d;->h:I

    if-eq p1, v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/c/a/d;->g:Lcom/xingbook/park/c/a/f;

    invoke-interface {v0, p1, v2}, Lcom/xingbook/park/c/a/f;->a(II)V

    iput p1, p0, Lcom/xingbook/park/c/a/d;->h:I

    move v3, v2

    :goto_0
    if-lt v3, v4, :cond_1

    :cond_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/xingbook/park/c/a/d;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    if-ne v3, p1, :cond_2

    const/4 v1, 0x1

    :goto_1
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setSelected(Z)V

    add-int/lit8 v0, v3, 0x1

    move v3, v0

    goto :goto_0

    :cond_2
    move v1, v2

    goto :goto_1
.end method
